$(window.document).scroll(function() {
	var scrolltop = $(document).scrollTop();
	if(scrolltop > 40) {
		$(".nav").css({ 'background': '#353334', "opacity": ".9", "filter": "alpha(opacity=90)", "-ms-filter": "progid:DXImageTransform.Microsoft.Alpha(opacity=(90))" })

		$(".nav").mouseover(function() {
			$(this).css({ 'background': '#353334', "opacity": ".9", "filter": "alpha(opacity=90)", "-ms-filter": "progid:DXImageTransform.Microsoft.Alpha(opacity=(90))" })
		})
		$(".nav").mouseleave(function() {
			$(this).css({ 'background': '#353334', "opacity": ".9", "filter": "alpha(opacity=90)", "-ms-filter": "progid:DXImageTransform.Microsoft.Alpha(opacity=(90))" })
		})
	} else {
		$(".nav").css({ 'background': '' })

		$(".nav").mouseleave(function() {
			$(this).css({ 'background': 'none' })
		})
	}
});

$(".nav").mouseover(function() {
	$(this).css({ 'background': '#353334', "opacity": ".9", "filter": "alpha(opacity=90)", "-ms-filter": "progid:DXImageTransform.Microsoft.Alpha(opacity=(90))" })
})
$(".nav").mouseleave(function() {
	$(this).css({ 'background': 'none' });
})

